/**
 * Created by Deboy on 2017/1/26.
 */
import * as types from './mutations-types'
const mutations = {
  [types.SET_TOPBAR_STATUS] (state, payload) {
    if (typeof payload === 'boolean') {
      state.topbar.show = payload
    } else {
      state.topbar = Object.assign({}, state.topbar, payload)
    }
  },
  [types.SET_TABBAR_STATUS] (state, payload) {
    if (typeof payload === 'boolean') {
      state.tabbar.show = payload
    } else {
      state.tabbar = Object.assign({}, state.topbar, payload)
    }
  }
}
export default mutations
